param(
  [string]$ItemId = '02509032-22e4-41fa-92f5-89591d378eed',
  [string]$BaseUrl = 'http://localhost:8081'
)

$headers = @{ 'Content-Type' = 'application/json' }
$payload = @{ itemId = $ItemId } | ConvertTo-Json
$url = "$BaseUrl/api/recommendation/analysis"
$resp = Invoke-RestMethod -Method Post -Uri $url -Headers $headers -Body $payload
$resp | ConvertTo-Json -Depth 10